//
//  WMSDKRequestTool.h
//  WonderPurchaseSDK
//
//  Created by zero on 2021/7/23.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface WMSDKRequestTool : NSObject

+ (instancetype)sharedTool;


/// 发起post请求
/// @param urlString 请求地址
/// @param params 请求参数
/// @param handle 请求结果回调
- (void)postWithUrl:(NSString *)urlString Params:(NSDictionary *)params completionHandler:(void(^)(BOOL status, NSString *msg, NSDictionary *data))handle;


/// 发起 Get 请求
/// @param urlString 请求地址
/// @param params 请求参数
/// @param handle 请求结果回调
- (void)getWithUrl:(NSString *)urlString Params:(NSDictionary *)params completionHandler:(void(^)(BOOL status, NSString *msg, NSDictionary *data))handle;


@end

NS_ASSUME_NONNULL_END
